/*
 * 英才汇硕信息科技有限公司 拥有本软件版权 2021 并保留所有权利。
 * Copyright 2021, YCHS Information&Science Techology Co.,Ltd,
 * All right reserved.
 */
package com.ychs.lawyerback.service;


import com.fasterxml.jackson.core.JsonProcessingException;
import com.ychs.lawyerback.dto.LoginReqDTO;
import com.ychs.lawyerback.dto.UserOptDTO;
import com.ychs.lawyerback.dto.UserQueryDTO;
import com.ychs.lawyerback.pojo.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * @author mayujing
 * @version 1.0
 */
public interface UserService {

    // 登录方法：接收用户名密码，返回令牌和用户信息
    Map<String, Object> login(LoginReqDTO loginReqDTO) throws JsonProcessingException;

    Map<String, Object> getUsersByCondition(UserQueryDTO userQueryDTO);

    long addUser(UserOptDTO userOptDTO);

    int editUser(UserOptDTO userOptDTO);

    boolean existsByUsername(String username);

    int deleteUser(List<Long> ids);

}
